package com.study.tiger.service;

import com.study.tiger.util.DESUtil;
import org.springframework.stereotype.Service;

@Service
public class EncryptService {

    private static final String ENCRYPT_MODE = "ENCRYPT#";

    public String getEncrypt(String str){
        return DESUtil.encrypt(ENCRYPT_MODE,str);
    }

    public String getDecrypt(String str){
        return DESUtil.decrypt(ENCRYPT_MODE,str);
    }
}
